package com.itbaizhan.common.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LivegoodsResult implements Serializable {

    private Integer status;
    private String msg;
    private Object data;

    public static LivegoodsResult ok(String msg) {
        return new LivegoodsResult(200, msg, null);
    }
    public static LivegoodsResult ok(Object data) {
        return new LivegoodsResult(200, "ok", data);
    }
    public static LivegoodsResult error() {
        return new LivegoodsResult(500, "error", null);
    }
    public static LivegoodsResult error(String msg) {
        return new LivegoodsResult(500, msg, null);
    }
}
